<%--
  Created by IntelliJ IDEA.
  User: Shinelon
  Date: 2017/6/17
  Time: 12:36
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="common/header.jsp" %>

<div class="link">
    <h2>更新用户数据</h2>
    <c:if test="${saved == 'success'}">
        <p class="success">更新成功！</p>
    </c:if>
    <form:form modelAttribute="user" action="/demo/user/update" method="post">
        <form:label path="id"></form:label><form:hidden path="id" />
        <form:label path="name">用户名</form:label><form:input path="name" />
        <form:label path="type">用户类型</form:label><form:input path="type" />
        <form:label path="pwd">密码</form:label><form:password  path="pwd" />
        <button type="submit" id="update">更新</button> <a href="/demo/user/">返回</a>
    </form:form>
</div>


<%@ include file="common/footer.jsp" %>

